package com.cskaoyan.controller;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.data.PageData;
import com.cskaoyan.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RequestMapping("/admin/region")
@RestController
public class AdminRegionController {
    @Autowired
    RegionService regionService;

    @RequestMapping("list")
    public BaseRespVo list(){
        PageData pageData = regionService.selectAll();

        return BaseRespVo.ok(pageData);
    }


}
